<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@page import="sosr.bean.Medecin"%>
<%@page import="sosr.serveur.IServeurRMI"%>
<jsp:useBean id="pageConfig" scope="session" class="bean.Page"></jsp:useBean>
<jsp:useBean id="logon" scope="session" class="bean.Connexion"></jsp:useBean>
<% int id = pageConfig.getAction_id(); 
request.setCharacterEncoding("UTF-8");
%>
<h1>Fiche utilisateur #<%=id %></h1>
<%
IServeurRMI serv = logon.getSrvRMI();
serv.open();

Medecin p = serv.selectMedecin(id);

if (p!=null) {

String nom = p.getNom();
String prenom = p.getPrenom();
String adress = p.getAdresse();
String tel = p.getTel();
String ville = p.getVille();
String qualification = p.getQualification();
int cp = p.getCp();
String identifiant = p.getIdent();
String num = p.getNum();

%>
<table cellpadding="0" cellspacing="0" class="fiche_patient" width="400">
	<tr>
		<td class="fst">Identifiant : </td>
		<td><%=identifiant %></td>
	</tr>
	<tr>
		<td class="fst">Qualification : </td>
		<td><%=qualification %></td>
	</tr>
	<tr>
		<td class="fst">Nom : </td>
		<td><%=nom %></td>
	</tr>
	<tr>
		<td class="fst">Pr&eacute;nom : </td>
		<td><%=prenom %></td>
	</tr>
	<tr>
		<td class="fst">SIRET : </td>
		<td><%=num %></td>
	</tr>
	<tr>
		<td class="fst">T&eacute;l&eacute;phone : </td>
		<td><%=tel %></td>
	</tr>
	<tr>
		<td class="fst">Adresse : </td>
		<td><%=adress %></td>
	</tr>
	<tr>
		<td class="fst">Code postal : </td>
		<td><%=cp %></td>
	</tr>
	<tr>
		<td class="fst">Ville : </td>
		<td><%=ville %></td>
	</tr>
</table>
<%
}

serv.close();

%>